<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        /*id选择器*/
        #p1{color: red}
        #p2{color: yellow}
        /*类选择器*/
        .c1{color: orange}
        /*分组选择器*/
        a,#p2,.c1{background-color: hotpink}
        input[type='text']{color: blueviolet}
        input[type='password']{background-color: cadetblue}
        /*任意元素选择器*/
        /*边框     粗细 边框样式 颜色*/
        *{border: 1px solid red}

    </style>
</head>
<body>
    <ul>
        <li id="z">张学友</li>
        <li class="c2">刘德华</li>
        <li>郭富城</li>
    </ul>
    <h1 class="c2">孙悟空</h1>
    <h1>八戒</h1>
    <h1>唐僧</h1>
    <h2>刘备</h2>
    <input type="submit">
    <input type="button" value="按钮">
    <br>
    <input type="text">
    <input type="password">
    <a href="">超链接</a>
    <p id="p1">苹果</p>
    <p id="p2">香蕉</p>
    <p class="c1">橘子</p>

    <div>电视</div>
    <div>冰箱</div>
    <div class="c1">洗衣机</div>
</body>
</html>